mod cors;
mod create;
mod delete;
mod list;
mod update;
mod secret;

use rocket::route::Route;

fn sub_routes() -> Vec<Vec<Route>> {
    vec![
        update::route(),
        create::route(),
        list::route(),
        delete::route(),
        cors::route(),
        secret::route()
    ]
}

pub fn route() -> Vec<Route> {
    sub_routes()
        .into_iter()
        .flatten()
        .collect()
}
